package me.wangqu.weiyouqu.web.rest.util;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created by arcticfox on 6/22/16.
 */
public class DateUtil {

    private static  SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");

    public static String getCurrentDateString() {
        return sdf.format(new Date());
    }

    public static long getCurrentUnixTime() {
        return new Date().getTime()/1000;
    }
}
